a = [8500, 8500, 8500, 8500, 8500, 8500, 8500, 8500, 8500, 8500, 8500, 8500, 8500,
     8500, 8500, 8500, 0, 0, 0, 8500, 8500, 8500, 8500, 8500, 8500, 8500, 22000, 22000, 22000
    , 22000, 8500, 8500, 8500, 8500, 8500, 8500, 8500, 8500, 8500, 8500, 8500]
b = 0
print(sum(a))

for i in  range(len(a)):
    b+=a[i]

print(b)